added a saving mask