fixed cosines idk why math was still wrong

ll