S&P 500 dips but index not far from record levels