refactor

change bit mask type from int to unsigned