bug in assign