updated re to correct version
changed some variable names