more formatting, fixed newFreameInBuffer bug