pull out arrays into controller