editted out CNPLATFORM, not necessary and makes it hard to compile