removed duplicate variables