optimizing ls use