added general base convert