trying it with array again