move format routines from example to placecomplete