remove extra space, bracket placement