revision for a better check trigger