removing function call for assignment3.1