added palette to array