finished the functions and triggers, but need to test the bottom triggers