fixed the change_box command. I forgot to invert the H matrix