added a 'join' before the 'format and indent'