improved uniformtransitions, not thoroughly tested