updated code dealing with suffix.avg