fix indentation in format func