fixing extra space issues