start contest function