added if statement to see where plots are