update to __init__