complete helper.js