changed append to make it syntactically correct