added indent maintaining while splitting