updating mask to support fade