stupid me - changed int to unsigned long