math : refactor to renderer