switch to unsigned short as input