configration for head and tail added