correctly printing and concatenating