bug in assignment