added code processing stuff