removed abs, min & max from util
renamed the collisions "t" variable to "ti" to avoid name clashes with top"