before leafattr change