preparing steps for correct ins and outs