changed answer function