starting convertToMono function and fixed indentation
merge conflicts