pre check for conditions