third with code for convertion