changed fucntion to function