some code protections