fixed issue with extra spaces