some AG related stuff

some math problem check