fixed function name
updated syntax and a version or two