some changes to processing2