removed superfluous assign operations