replace cons to append