working lamda function
not pairing properly