corrected upper border effect