updated helpers.js for conditions data