the last line was missing :

     return arrays