changes the function stings to anonymous function