updated mainUbf1 example