added fips function