color mask code added