got array thing to work