check data when beginning to run