ensure lowercase comparisongs