fix bug and add new feature to set min&max exp