added answer function