refactorization of adding contests: