get rid of unneeded argument in get_methods and get_alloc_methods