fixed where statements with arrays