automatic line numbers handling