adding requirements for index method