make the normalize function reusable