removing double defined functions