fixed if statement for packagename