use appropriate type
read illumination values correclty