$ua changed to object variable