initialize function added for objects