add totalFreeXP macros