bugfixes (arrays not working)