moving poly module to its own file