fixed some spacing issues in code