+math functions; bug fixes