fixing bugs found from piazza test
preping for func pointer type