The second for-loop is not needed