changed skips to prevent NaN