little refactoring deleting useless  #to_a calls