make generated methods package private