new calculate line numbers