added mask generation