clearArea function added