adding plot functions