problems with types, arrays and strings