formatted, removed global functions