removed unused function append()