change obj function again