updated jade logic for results === 0