added relative and absolute location counter