fix map key and method adding