line number method added