removed empty space at end