added code to get junction data