load library added and some variables' names have been changed