refactoring in Service/MarkService.cs