passes all tests except for avergaes