trying to take the pixelDevice into account