renamed logNG to log + removed old code