add performance for trainrp function