modify to work with high resolution screen