removed unused border code