Added spaces and corrected the functions