replacing %d with %ld for NSInteger