simplified executable (and fixed)