configuring mask processing