added pair constructors