code used for GE demo