modified crossing event and global