Useless and duplicated code