copy past error
added some ToArray() to ensure execution