fixed and tested HISTORY