fixing multi-arg dim bug