created plotting fuctions