Refactor: simply avg deviation function