adding check for 3 chars
check for saveResults having html file type moved to top