refactor dimKey to dimAttribute