clarified replace return attributes