update to remove empty lines