added utility for conversion