removed Useless code