changes method arguments to hash