Corrected some bugs about spaces isntead of spaces
added two functions ill be using later