scipt for histo making added