update to remove white space and empty lines