code variable fix