moved cupCount