adjusting format to use long instead of NSInteger