add trip overwriting bug fixed