moved to prototype methods, indentation change