suit for declaration with consequential relief