modify homework1-2 function name error