add answer logic