raw working code