found duplicated code that is not needed