changed specification yaml representation to array of pairs