change array to list