fixed function definition for addArea and addUnit