added tan and sqrt