call reportPosition instead of repeating code