trying fix bug with ls
minor changes