remove an element from an array by value