added some old functions