jslint:This function has too many statements.(36)