corrected error from removed variable