hearing the petition