structure broken because of attr_func.