added simple evaluation function