crappy plot function