add check maximum if sec or prime priority