making compatible with Processing 1.5