fixing circling functionality