Ziqi added normalize function in BSQ