formatting code to Idea