make getNumPalms() const