stuff a while ago, MainFuctions