1. purge code