take resolution into account