Replaced some cos3 by opls