check files not working