strict mode

different solution for #2