added extend statement to where it was supposed to be