modified pbar class