removed empty spaced at the end