created adjustExtent() for a more uniform way to decide whether extent needs to change.