replaced obsolete variable with correct