updated syntax and comments