fixed undeclared identifier error using strncmp