set the right resolution