initialized the flowmask properly.