kill duplicated code