use correct table name for conditions