remove unnecessary mask