switching to jme, using code from coding example