start to check directory