simplified demo testing logic