use IsLastBar property