a rough script to take avg of multiple records. not awesome