split conversion into 2 steps to speed up