made radius input robust