add whereCondition method