contest functionality