update

added if not empty to prevent empty strings