parse register