changed for 2nd part of hw 2a