tweaking max heap on compile so it's only set once