acid functions and applications.