added call to ob_end_flush