added error message for in check