mltries refactoring + comments