fixed upside down problem