fixed arrayoutofbounds + spelling