preventing bad code from being run