switching mask value from 1 to 0