tweaked code format