update class library and if statement