pass ui object 50% and environment