debugged concatenate