delete redundance code