minor changes

- changes const string in castle to constant in anonymous namespace
- small reafactoring for better reading