cleaning up helper.js