first step of parse