changed to prototype