added code to ignore blanks