parsing instance decl