trying to get multiple instances to show

code breaks when I put in my if statement