fixing object syntax