adding a method to the main index