adjust instructions, move arrow to own function