reimplement market table processingjs