added total for passing for swift