moved poly methods to prototype