subtract separate functions