changes to helpers.js