override normalize method to avoid possibility of division by zero
clean up