Trying to fix alg, and see if works in event datagetting