ligthmask to unsigned int