function to make it work

function to make it work