parse contents