move instance var setting to __init__