#38 replace tabs with spaces, correct history order
#38 replace tabs with spaces