added lowercase check