fix dimension shuffle (switched the agumented dimensions