renamed
added indexoutofbounds