improved circle radius computation
fixed color coding