move answer preparation into func