fixed spacing and changed return value