removed WriteMainMethod