controller formatting