added readdir method