updated flpe function and fixed all forms