clean up line numbers implementation