added stopping point of ref