first attempt at conversion