make generated methods private