added the function and 'use strict' code