modify leaves