register and delete