adding mt animation specific masking function