improved renorm routine