moving properties to prototype