fix formatting, remove duplicate output