remove instance from array