changed function name from setWhere to addWhere