corrected the rcore conversion for the final integration