added append() function