added plotting cb