added some plotting funcs