formatting script modified