removed unused -tmp option
second step
moved method