use const on size_t vars when referring to size of constant memory block