delete unnecessary if statement within function
add init
add test run