fixed spacing in function