less file parse refactory