arrayoutofbounds error fix i think