adds my old assign code