Transferred code to the header file from ipp