fix with intptr_t instead of longs