removed unneeded updateCircle function from imperative version