improvement on the mask's behavior