remove double assignment