append instead of two puts