how to indentify the orderd pairs if it is a function or not ok​