changed from char to NSInt