modify inherit mode from private to public