moved depricated and unused functions out of gui program