just moved some code to depricated - plotting