removed mask code