move border code