shortening x from cosine