object declartion issue