added  custom_init() method