refactoring
compiles now with processing 2.1