Change the operation of the function for append a list to an other list