move parse into each class