added code to fetch masters from service