add atop position writing