but filter out directories