radius function with coords saved