updating readdir