clean up empty dict