Append function is oworking