function of retag