add printWarning() so I don't have to revisit this code when adding warning output