made a couple changes to ls.cpp