add array definition and selector