whoops, sprintf sitting outside a conditional when it shouldn't have been