ls.cpp updated