improve sqrt types