modify answer logic