removed Processing.
better structure in code - UNTESTED!!