fixing the resolution choice function