infinity replaced with 1/0