fixing object declaration