bugfixes (arrays still not working)