adding an extended function