adding sender function