adding conversion functionality