add public method parse