implementing parse(), step #1