naive generator working