condition for direct visit error