added parsing method