normalize moved to own file