fix clear, add sin, cos, pi