use strict rules and fixed errors generated by non-safe code