append and head