doubled the array when adding
fixed remove