added code param to step2