adding remove to ref