Masses in structure functions