removed average difference calculations