adds strict mode, unused variable cleanup