removed render kind functions
added a state fold function
reduced entity to an integer