changed parameters, fixed step 2, added step 3