small tweak to use eq instead of le in comparison