used reference parametres for several functions