updated for Processing 2