inner and outer distance