formatted code with intelliJ