add three dimension case