update to fix trigger not always firing