errors in assign case