prepare entity & source