only attach line number after advancing