modifications to answer servlet