dodge Travis' complaining about static functions

Though I believe it is legal to declare a function inside of a function.