first try of new thb code