made normalize void function