changed important array to use names instead of id