delete all unnecessary code and add triggers to code