update hist function with tests and name change