consolidated some plotting lines of code by guild