Local copy of normalize