simplified functions, added convert fucntion to disorder