fixed object orientation,
return distance to an object is added