add init method