adapt indent code