restructure parse with more methods
merge parseArray method