improving the answer checker algorithm