apply some reformatting