evaluation function basic structure