new testing code for demo