cleaned up ls.cpp