main solution for teamcity test