add removeLast to array