added automatic indentation to snippet