very basic mask mechanism