corrected top <-> left error