debug for uninitialized posA,posB