fixing missing closing brackets and proper function name