add total space at the end