modified to calculate leaf area using sum instead of bwarea (because bwarea is buggy!)