ctype usage added