some tweaks on time range bar code