changed behavior for invalid input
added inf constant