replaces unsigned long with int