'modes' seems like the wrong var name here... this is an array of Languages, isn't it?