updated task to check files