add all entites and select function