correct indent function