updated processing sketch