changing syntax to check data