not giving correct resolution, have to set it manually