Fixed spacing errors and unnecessary variable