added indexLastOf and reverse