added insert function for evaluation