extracted get_method_information function
remove keys()