trying to get objects to work correctly