improved answer checker