added character check