Change 3.1 to 3 and fix indentation