fixed some errors regarding spacing