made id a property instead of a function