added functionality to get leads