got rid of old functions that become absolete
fix a very stupid mistake.