use ushort instead of int