writing out linking steps