MPI working with k<=14
code formatting for better readability