fixed border math