getting average to work