build entities