merging the extend statement fixed