leader: optimize some statments