duplicate extend statement fixed