moved general math to project gpjs