prepare phones code for rem