fixed the resolution problems by using wight