changed opening brace. instancetype where possible.