changed to log.w as per review