creating triggers