indent function added implementation