made changes to allow for inaccurate answers suggested by TA