added methodinfo function