to_object doesn't work