refactoring txt to MD