forgot to endif on new if loops