finished working with add-tem function