added explanation for the dot product mask