trying to rethink the logic of my app. saving old logic just in case.