working on obj function section