doc + use !strcmp to make code more readable