borders handling for common modes (working)