fix check to be more concise