finishes up the functionality of the project