modified i.from and i.to

i.from and i.to shouldn't need to be passed in to prevent errors.