added maxwell distribution