clean refs