add entity action
nice code