determined the logic need for remaining functions