fixed sequencing issue