minor work on sml hw6 change fxn