add , and remove the last one