safer code #2