code formatting: clean unnecessary spaces