changed select to selectRow in the getFirstMemento function