correct asin/acos as suggested by #4