fixes for hw1