updated plot bit routine