format and unused code