form determination working