add entity validation and change collision method
docs