changing the function name to list non empty files