print and useless code removed