update method in init. Add private method