added "use strict"; to method in declare