updated common.js to make similar