remving repated code