fixed memory allocation
fixed NSObject for allocation