incompatibilities with objc++ compiler due to type mismatch corrected