make sure  is array