if statement added to prevent breakage on amazon weird layouts