checksent function created
check key function created