made parse() take const char * argument