action to establish, modify or terminate a legal right