Check function to check