use an array to store methods and found