renamed handler to trigger