edited uflex code