A theory of action identification