avoids returning . and ..