finished with code for IFV feature computation