fixed print feature to avoid printing empty box values