custom_append not working right