entity API part 1