trying to solve the missing spaces problem