check for values <= 0 to fix issue 88