added title length check