switch on 5 value average