the piece you are talking about is called a tack strip should be somewhere in between the door frame it covers the edge of the wood floor and the carpet on each side and is nailed or screwed down.don't use the carpet tack strip(the board with the nails sticking out) where people step.somebody without shoes could poke their foot.