format and tweaking