fixed syntax error and default value for object type