fixed outofbounds