added initial triggers code