wrote simple evaluate()