minor optimisation....%2 to &1