custom generator appears to work (applied for constants here)