added initial rival logic