error syntax: change fucntion to function