added functionality for different input bases