less-hat new implementation