working with 3 masks now, checking is not done properly