changed prototype to instance property