update lslt bash function