make tango a function