updated syntax, added comments