remove unneeded codes to fix running error