move out instantiation to __init__