added more steps for histogram