hw3 modifications