added function for changing base