move initialization to init method