and setwithmask