erroneous assignment fixed