if input null then output null too for assignID