adding where values to union