added typeof, string and Math.PI