reduced amount of inline code by creating new functions setReserved, getReserved, and existsReserved