rename local variable mask to attens