moved out distributions and generalised, added eq as synonym for ==