change long to size_t for frozen pots (other changes for consistency)