purefy the code