accept array as argument