functions before the concept of state