variables passed by reference added