remove the pass by reference ampersand from function call as is discouraged in php5