working code with twill