distance check added