trying to fix reset of robbed variable