issue is fixed, but now "cyclomatic complexity exceeds 10 in subtract()