ostensibly working version