updated trash.action code