clean up of format problems