did tests for me ls.cpp