standardizing alerts and background with variables