matrices working but problematic