fixed outofboundserror