added htable, updated histogram