improve area detection