added another function to convert character to in
conflict with stack