in order to keep code compatibilty, use max_int for this code