split logic for stats up