remove obsolote and prints