removes inf